package exam;

/**
 * @author げっしょく
 * @date 2021/7/28
 */
public class Test {
    public static void main(String[] args) {
        int a = 10;
        int b = 96;
        int c = 78;
        int d = 22;
        int e = 4;
        prin(a,b,c,d,e);
    }

    private static void prin(int... a) {
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            sum += a[i];
        }
        System.out.println(sum);
        int tump = 0;
        for (int i : a) {
            tump += i;
        }
        System.out.println(tump);
    }
}
